﻿package mortal.game.view.skill.test
{
    import Message.Public.*;
    import com.mui.controls.*;
    import mortal.game.view.common.*;

    public class SkillChouHenTestRender extends GCellRenderer
    {
        private var _txt:GTextFiled;
        private var _myData:SkillThreatData;

        public function SkillChouHenTestRender()
        {
            return;
        }// end function

        override public function set data(param1:Object) : void
        {
            this._myData = param1 as SkillThreatData;
            if (this._myData.isHight)
            {
                this._txt.textColor = 16711680;
            }
            else if (this._myData.isLow)
            {
                this._txt.textColor = 65280;
            }
            var _loc_2:* = this._myData.data;
            this._txt.text = this._myData.index + "    " + _loc_2.name + "    " + _loc_2.value;
            return;
        }// end function

        override public function set label(param1:String) : void
        {
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            this._txt = UIFactory.gTextField("", 0, 0, 180, 20, this);
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            super.disposeImpl(param1);
            return;
        }// end function

    }
}
